package com.minshenglife.zanzan.service;

import java.util.List;

import com.minshenglife.zanzan.entity.weixin.AutomaticReply;

/**
 * 微信自动回复service
 * @author jianghaibo
 *
 */
public interface AutomaticReplyService {

	/**
	 * 通过主键查询
	 * @param automaticId
	 * @return
	 */
	AutomaticReply get(Long automaticId);
	/**
	 * 查询某公众号的所有自动回复
	 * @param appid	公众号标识
	 * @return
	 */
	List<AutomaticReply> findAllByAppid(String appid);
	/**
	 * 添加自动回复
	 * @param automaticReply
	 * @return
	 */
	AutomaticReply add(AutomaticReply automaticReply);
	/**
	 * 删除关键词自动回复规则
	 * @param automaticReply
	 * @return
	 */
	boolean delete(AutomaticReply automaticReply);
	/**
	 * 修改关键词自动回复规则
	 * @param automaticReply
	 */
	void update(AutomaticReply automaticReply);

}
